package com.zrrd.gmall.webAll.controller;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class PassportController {
    @GetMapping("/login.html")
    public String login(HttpServletRequest request){
        //登录后要跳的地址
        String originUrl = request.getParameter("originUrl");
        //存入请求
        request.setAttribute("originUrl",originUrl);
        //跳转
        return "login";
    }
}
